import request from '@/utils/request'
// 设备列表
export function getList(params) {
  return request({
    url: '/vm-service/vmType/search',
    method: 'GET',
    params
  })
}
// 删除设备
export function delList(typeId) {
  return request({
    url: '/vm-service/vmType/' + typeId,
    method: 'DELETE'
  })
}
// 新增设备
export function addList(data) {
  return request({
    url: '/vm-service/vmType',
    method: 'POST',
    data
  })
}
// 修改设备
export function editList(data) {
  return request({
    url: '/vm-service/vmType/' + data.typeId,
    method: 'PUT',
    data
  })
}
